<%@ include file="/WEB-INF/common/taglibs.jsp"%>
<div class="ui-widget ui-widget-content">
<div
	class="ui-dialog-titlebar ui-widget-header ui-helper-clearfix headingTag">Topics</div>
<div class="pageMenu"><c:if test="${param.pageIndex gt 1}">
	<a
		href="<c:url value="/topics.do?pageIndex=${param.pageIndex-1}&pageSize=${param.pageSize}"/>">Previous&nbsp;Page</a>
</c:if>&nbsp;&nbsp;<a
	href="<c:url value="/topics.do?pageIndex=${param.pageIndex+1}&pageSize=${param.pageSize}"/>">Next&nbsp;Page</a></div>
<div class="items"><c:forEach var="topic" items="${topics}">
	<div class="item">
	<div class="title"><a
		href="<c:url value="/topic.do?id=${topic.id}" />">${topic.name}</a></div>
	<div class="description"><c:choose>
		<c:when
			test="${topic.linkQuantity eq null || topic.linkQuantity == 0}">no</c:when>
		<c:otherwise>${topic.linkQuantity}</c:otherwise>
	</c:choose>links&nbsp;shared&nbsp;&nbsp;<a href="#"
		onclick="shareWithCategory('Link','topic','${topic.id}')"><img
		src="<c:url value="/images/share-a-link.png" />" /></a></div>
	</div>
</c:forEach></div>
<div class="pageMenu"><c:if test="${param.pageIndex gt 1}">
	<a
		href="<c:url value="/topics.do?pageIndex=${param.pageIndex-1}&pageSize=${param.pageSize}"/>">Previous&nbsp;Page</a>
</c:if>&nbsp;&nbsp;<a
	href="<c:url value="/topics.do?pageIndex=${param.pageIndex+1}&pageSize=${param.pageSize}"/>">Next&nbsp;Page</a></div>
</div>